package com.pingan.glue.gluegame.service.impl;

import com.pingan.glue.gluegame.dao.FriendUserDao;
import com.pingan.glue.gluegame.entity.FriendUserEntity;
import com.pingan.glue.gluegame.entity.FriendUserTokenEntity;
import com.pingan.glue.gluegame.service.FriendUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class FriendUserServiceImpl implements FriendUserService {

    @Resource
    private FriendUserDao friendUserDao;

    @Override
    public FriendUserEntity queryUser(Long userId) {
        return friendUserDao.selectById(userId);
    }

    @Override
    public FriendUserEntity queryByMobile(String mobile) {
        return friendUserDao.queryByMobile(mobile);
    }

    @Override
    public Integer createUser(FriendUserEntity entity) {

        return friendUserDao.insert(entity);
    }
}
